package com.towexin.application.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.towexin.application.system.domain.Menu;

import java.util.List;
import java.util.Map;

public interface MenuService extends IService<Menu> {
    
    boolean deleteCascadeMore(List<String> ids);

    boolean deleteCascade(String id);

    boolean saveOrUpdateMenu(Menu menu);

    boolean changeStatus(String id, Boolean status);

    Map<String, Object> menuRendering();
    List<Map<String, Object>> newMenuRendering();

    List<Menu> selectAll();

    List<Map<String, Object>> selectMenuTree();

    List<Map<String, Object>> selectMenuTreeByPid(String pId, String id);
}
